home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 798 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  789 b 

  1. Path: yarrow.wt.com.au!usenet
  2. From: bvarley@yarrow.wt.com.au (bruce varley)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: A problem with fprintf
  5. Date: Wed, 10 Jan 1996 02:33:36 GMT
  6. Organization: Winthrop Technology
  7. Message-ID: <4cth3m$1c0@yarrow.wt.com.au>
  8. References: <4cs8ie$5ru@no-names.nerdc.ufl.edu> <4csdt4$mcn@castle.nando.net>
  9. NNTP-Posting-Host: yarrow
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. In a formal sense the debugger is right. 'src' is not the same as a
  13. pointer to a string. &src[0] is closer to being formally right, if src
  14. is type char. If the debugger is REALLY finicky, it might go off
  15. hunting for the null and spit the dummy if it doesn't find it.
  16.  
  17. One solution is to use pointers. char* is the right way to point to
  18. the string to be output. 
  19.  
  20. Not all compilers are this fussy.
  21.  
  22.